#include <stdio.h> 
int main()
{
	freopen("test.in", "r", stdin);
	freopen("test.out", "w", stdout);
	int n = 0;
	scanf("%d", &n);
	long long total = 1;
	for ( int i = 1; i < n; i++ ) {
		total = (total + 1 ) * 2;
	}
	printf("%lld", total);
	fclose(stdin);
	fclose(stdout);
	return 0;
}
